{extend name="common/layout" /}

{block name="style"}{/block}
{block name="content"}
<link href="__MEMBER_PATH__/css/layout.css" rel="stylesheet" type="text/css"/>
<div class="nch-container wrapper">
  <div class="left">
    <div class="nch-module nch-module-style01">
      <div class="title">
        <h3>所有文章分类</h3>
      </div>
      <div class="content">
        <ul class="nch-sidebar-article-class">
         {notempty name='sub_class_list'}
         {foreach $sub_class_list as $k=>$v}  
          
          <li><a href="<?php echo url('home/Article/article', array('ac_id'=>$v['ac_id']));?>"><?php echo $v['ac_name']?></a></li>
          {/foreach}
          {/notempty}

        </ul>
      </div>
    </div>
   <!--  <div class="nch-module nch-module-style03">
      <div class="title">
        <h3>最新文章</h3>
      </div>
      <div class="content">
        <ul class="nch-sidebar-article-list">
        {notempty name='new_article_list'}
        {foreach $new_article_list as $k=>$v}  

          <li><i></i><a <?php if($v['article_url']!=''){?>target="_blank"<?php }?> href="<?php if($v['article_url']!='')echo $v['article_url'];else echo url('/home/Article/show', array('article_id'=>$v['article_id']));?>"><?php echo $v['article_title']?></a></li>
         {/foreach}
         {else}
          <li>没有最新文章</li>
        {/notempty}
        </ul>
      </div>
    </div> -->
  </div>
  <div class="right">
    <div class="nch-article-con">
      <div class="title-bar">
        <h3><?php echo $class_name;?></h3>
      </div>
      <?php if(!empty($article) and is_array($article)){?>
      <ul class="nch-article-list">
        <?php foreach ($article as $article) {?>
        <li><i></i><a <?php if($article['article_url']!=''){?>target="_blank"<?php }?> href="<?php if($article['article_url']!='')echo $article['article_url'];else echo url('home/Article/show', array('article_id'=>$article['article_id']));?>"><?php echo $article['article_title'];?></a><time>(<?php echo date('Y-m-d',$article['article_time']);?>)</time></li>
        <?php }?>
      </ul>
      <?php }else{?>
      <div>没有符合条件的文章</div>
      <?php }?>
     
    </div> <div class="tc mb20">  <div class="pagination"> <?php echo $show_page;?> </div></div>
  
  </div>
</div>
{/block}

